<?php
/**
 * Created by PhpStorm.
 * User: zhangrui
 * Date: 2019/3/5
 * Time: 18:36
 */

namespace app;


class About extends Index
{
    public function addAbout()
    {
        $doc = ['company' => '网易', 'about' => '网易公司（NASDAQ: NTES）是中国的互联网公司，利用互联网技术，加强人与人之间信息的交流和共享，实现“网聚人的力量”。创始人兼CEO是丁磊。'];
        $bulk = new \MongoDB\Driver\BulkWrite();
        $bulk->insert($doc);
        $writeResult = $this->mongo->executeBulkWrite('abc.abouts', $bulk);
        dump($writeResult->getInsertedCount());
    }
}